<%-- 
    Document   : student
    Created on : Jul 11, 2008, 9:33:35 PM
    Author     : Gaurav Gupta
--%>
<%@ include file="/common/taglibs.jsp" %>

<head>
    <title><fmt:message key="studentList.title"/></title>
    <meta name="heading" content="<fmt:message key='studentList.heading'/>"/>
    <meta name="menu" content="StudentMenu"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/studentform.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="studentList" cellspacing="0" cellpadding="0" requestURI=""
    id="studentList" pagesize="25" class="table studentList" export="true">

    <display:column property="id" escapeXml="true" sortable="true"
        url="/studentform.html" paramId="id" paramProperty="id" titleKey="student.id"/>
    <display:column property="name" escapeXml="true" sortable="true" titleKey="student.name"/>
    <display:column property="rollNo" escapeXml="true" sortable="true" titleKey="student.rollNo"/>
    <display:column property="marks" escapeXml="true" sortable="true" titleKey="student.marks"/>
    <display:column property="branch" escapeXml="true" sortable="true" titleKey="student.branch"/>

    <display:setProperty name="paging.banner.item_name" value="student"/>
    <display:setProperty name="paging.banner.items_name" value="student"/>

    <display:setProperty name="export.excel.filename" value="Student List.xls"/>
    <display:setProperty name="export.csv.filename" value="Student List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Student List.pdf"/>
</display:table>
<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("studentList");
</script>